﻿using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace SimpleToDoList.Models
{
    public class ToDoItem
    {
        /// <summary>
        /// 是否选中
        /// </summary>
        public bool IsChecked { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string? Content { get; set; }
    }

    [JsonSourceGenerationOptions(WriteIndented = false)]
    [JsonSerializable(typeof(List<ToDoItem>))]
    internal partial class TodoItemSourceGenerationContext : JsonSerializerContext { }
}